VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Detect \ in directory

Eric LeBourgeois  (3 Submissions)   Coding Standards   Visual Basic 3.0   Beginner   Wed 3rd February 2021

Suppose You try to get the app.path when the app is in the C Drive. the result is "C:\". if the app is in another directory the result may be "C:\Directory". notice there is no backslash. most people skip this because they don't think it is a problem, but it is. when you put in a program, app.path & "\filename.file", when it is in the C Drive or if you put app.path & "filename.file" in a named directory, the computer will either return "C:\\filename.file" or "C:\Directoryfilename.file". this code will show you how to detect the backslash and deal with it.

Rate Detect \ in directory (10(10 Vote))
Detect \ in directory.bas

Detect \ in directory Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters